package com.hbt.orderfood.utils;

import android.widget.ImageView;

import com.hbt.orderfood.R;
import com.hbt.orderfood.entitys.Order;

import java.util.LinkedList;
import java.util.List;

public class StringUtils {

    final public static String DRINK = "drink";
    final public static String TITLE = "报刊";
    final public static String MAIN_STR = "东方期刊";
    final public static String VEG_STR = "繁华期刊";
    final public static String DRINK_STR = "新月期刊";
    public static int USERID = 1;
    final public static String MAIN = "main";
    final public static String VEG = "veg";
    public static List<Order> orders = new LinkedList<>();

    public static void setImg(ImageView img, String type){
        switch (type){
            case MAIN:
                img.setBackgroundResource(R.drawable.main);
                break;
            case VEG:
                img.setBackgroundResource(R.drawable.veg);
                break;
            case DRINK:
                img.setBackgroundResource(R.drawable.drink);
                break;
        }
    }
}
